package admin

import (
	"github.com/gogf/gf/v2/frame/g"
)

type UserDepartmentIndexReq struct {
	g.Meta `method:"get"  tags:"user"`
}
type UserDepartmentIndexRes struct {
}

type UserDepartmentAddReq struct {
	g.Meta   `method:"get" tags:"user"`
	ParentId int `p:"parentId"`
}
type UserDepartmentAddRes struct {
}
type UserDepartmentEditReq struct {
	g.Meta `method:"get" tags:"user"`
	ResId  int64 `p:"resId"`
}
type UserDepartmentEditRes struct {
}
type UserDepartmentDelDoReq struct {
	g.Meta `method:"post" tags:"user"`
	ResId  int64 `p:"resId"`
}
type UserDepartmentDelDoRes struct {
}
type UserDepartmentSubmitDoReq struct {
	g.Meta         `method:"post" tags:"user" `
	ResId          int64  `p:"resId"       `       //
	ParentId       int64  `p:parentId`             //父类部门
	DepartmentName string `p:"departmentName"    ` // 部门名称
	CodeName       string `p:"codeName" `          // 部门编码
	OrderNum       int    `p:"orderNum" `          // 序号
	Bak            string `p:"bak"      `          // 备注

}
type UserDepartmentSubmitDoRes struct {
}

type UserDepartmentListDoReq struct {
	g.Meta         `method:"get"  tags:"user"`
	DepartmentName string `p:"departmentName"    ` // 部门名称
}
type UserDepartmentListDoRes struct {
}
